package com.hesicare.health.mapper;

import com.hesicare.cgm.entity.CgmPatient;
import com.hesicare.cgm.entity.CgmPatientDTO;
import com.hesicare.health.entity.SysPatient;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysPatientMapper {

    int insertSysPatient(SysPatient sysPatient);

    int updateSysPatient(SysPatient sysPatient);

    SysPatient selectSysPatientByHospitalizedNum(String hospitalizedNum);

    SysPatient selectSysPatientByHisPatientId(String hisPatientId);

    List<String> selectHisPatientIdByHospitalType();

    List<CgmPatientDTO> selectSysPatientBybindingStatus();

    List<SysPatient> selectHospitalNumByHospitalType();

    void updateHisPatientByhospitalizedType(List<String> patientList);

    List<CgmPatient> selectAllPatient();
}
